@import "./variables.module.scss";
@import "./mixin.scss";
@import "./transition.scss";
@import "./element-ui.scss";
@import "./sidebar.scss";
@import "./btn.scss";
@import "./ruoyi.scss";
@import "./common.scss";

body {
  height: 100%;
  margin: 0;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
    Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 0px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center;
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(
    90deg,
    rgba(32, 182, 249, 1) 0%,
    rgba(32, 182, 249, 1) 0%,
    rgba(33, 120, 241, 1) 100%,
    rgba(33, 120, 241, 1) 100%
  );

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

/* 新增/编辑公式dialog: => 鼠标悬停在表格的某一项选中状态 */
.x-table.el-table--enable-row-hover .el-table__body tr:hover > td {
  background-color: var(--theme-light-color) !important;
}

// success按钮样式修改
.el-button--success {
  background-color: var(--theme-deep-color) !important;
  border-color: var(--theme-deep-color) !important;
  color: #fff;
  border: transparent !important;
}

.el-button--success.is-disabled {
  background-color: var(--theme-light-disabled-color) !important;
}

// 链接按钮样式
.el-button.is-link {
  background-color: transparent !important;
  color: var(--theme-deep-color) !important;
  border: none !important;
}

// 将success按钮清除边框
.el-button--success.el-button--default {
  border: none !important;
}

// 设置按钮默认样式
.el-button--default {
  border: 1px solid var(--theme-deep-color) !important;
}

// 当按钮加了planin属性，触发此样式
.is-plain {
  border: none !important;
}

// 主要用于系统管理模块下的新增按钮
.el-button.primaryBtn {
  color: #fff;
}

.el-tabs {
  --el-tabs-header-height: 20px !important;
}
.el-tabs__item {
  margin-bottom: 10px;
}
.el-tabs__item.is-active {
  color: var(--theme-deep-color) !important;
}
.el-tabs__item {
  &:hover {
    color: var(--theme-deep-color) !important;
  }
}
.el-tabs__active-bar {
  background-color: var(--theme-deep-color) !important;
}

.menu-title {
  font-size: 16px !important;
  .svg-icon {
    font-size: 16px !important;
  }
}

.pagination-container {
  background-color: transparent !important;
}

:root {
  --el-menu-active-color: transparent !important;
  --el-menu-hover-bg-color: var(--theme-light-color) !important;
  --el-menu-hover-text-color: #303133 !important;
  --pinformation-font-size: 14px;
  // #4C63E2 深色蓝   91b0ff  浅色蓝
  --theme-deep-color:  #4C63E2;
  --theme-light-color:  #bbceff;
}

.el-dialog.ptDialog {
  --el-select-input-focus-border-color: 10px 0 20px 20px !important;
}

.el-tabs__header {
  margin: 0 0 7px !important;
}

// 下拉框选中字体颜色
.el-select-dropdown__item.selected {
  color: var(--theme-deep-color) !important;
}

.el-select-dropdown {
  // max-width: 156px !important;
}

// 多行文本框选中字体颜色
.el-textarea {
  --el-input-focus-border-color: var(--theme-deep-color) !important;
}

// 输入框选中时的边框颜色
.el-input__wrapper.is-focus {
  box-shadow: 0 0 0 1px var(--theme-deep-color) inset !important;
}

.el-select {
  --el-select-input-focus-border-color: var(--theme-deep-color) !important;
}

.el-range-editor.is-active {
  box-shadow: 0 0 0 1px var(--theme-deep-color) !important;
}

// 等待遮罩层文字颜色改变
.el-loading-spinner .el-loading-text {
  color: var(--theme-deep-color) !important;
}
.el-loading-spinner .circular .path {
  stroke: var(--theme-deep-color) !important;
}

// 删除提示框取消背景颜色
.el-message-box__btns .el-button--primary {
  background-color: var(--theme-deep-color) !important;
}

.el-message-box__btns .el-button:nth-last-child(2):focus,
.el-message-box__btns .el-button:nth-last-child(2):hover {
  background-color: transparent !important;
  color: var(--theme-deep-color) !important;
}

// 文件下载样式
.fileNameHover {
  color: var(--theme-deep-color);
  cursor: pointer;
}

.fileNameHover:hover {
  text-decoration: underline;
}

// 页码颜色样式
.el-pager li.is-active {
  color: var(--theme-deep-color) !important;
}

.el-pager li:hover {
  color: var(--theme-deep-color) !important;
}

.el-pagination button:hover {
  color: var(--theme-deep-color) !important;
}
.el-form--inline .el-form-item{
  margin-right: 5px!important;
}
// 右侧个人中心 退出登录 布局设置  的样式
.el-dropdown-menu__item:not(.is-disabled):focus {
  background-color: var(--theme-light-color) !important;
  color: var(--theme-deep-color) !important;
}

// 复选框选中的背景颜色
.el-checkbox__input.is-checked .el-checkbox__inner {
  background-color: --theme-deep-color !important;
  border-color: --theme-deep-color !important;
}

.el-checkbox__inner:hover {
  border-color: --theme-deep-color !important;
}

// 右上角的叉号
.el-dialog__header {
  border-radius: 15px 15px 0 0;
}

.el-dialog {
  border-radius: 15px !important;
}

.el-dialog__headerbtn {
  top: 0 !important;
}

.el-dialog__headerbtn .el-dialog__close {
  color: #fff !important;
}

.el-dialog__headerbtn:hover {
  color: #fff !important;
}

.el-dialog__headerbtn:focus .el-dialog__close,
.el-dialog__headerbtn:hover .el-dialog__close {
  color: #fff !important;
}

// 多选反选的背景颜色
.el-checkbox__input.is-indeterminate .el-checkbox__inner {
  background-color: var(--theme-deep-color) !important;
  border-color: var(--theme-deep-color) !important;
}

// 提示框经过时的字体颜色
.el-message-box__headerbtn:hover {
  --el-color-primary: var(--theme-deep-color) !important;
}

.el-form-item__label {
  padding: 0 !important;
}

// 表格中tag颜色
.el-tag {
  background-color: var(--theme-light-color) !important;
  color: var(--theme-deep-color) !important;
  border: 0px !important;
}

// 上下角标 和 提示框颜色
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

.el-popper.is-customized {
  /* Set padding to ensure the height is 32px */
  padding: 6px 10px;
  background: linear-gradient(90deg, rgb(159, 229, 151), rgb(204, 229, 129));
}

.el-popper.is-customized .el-popper__arrow::before {
  background: linear-gradient(45deg, #b2e68d, #bce689);
  right: 0;
}

.mark {
  font-size: 18px;
  margin-left: 5px;
  color: #67c23a;
  outline: none;
}

// 弹窗上面标题部分变绿色
.el-dialog-theme1 .el-dialog__header {
  margin-right: 0px !important;
  padding-top: 10px !important;
  background: url(../../assets/images/navbar-bg-1.png) no-repeat center center !important;
  // background-color: green !important;
}

.el-dialog-theme2 .el-dialog__header {
  margin-right: 0px !important;
  padding-top: 10px !important;
  background: url(../../assets/images/navbar-bg-2.png) no-repeat center center !important;
  // background-color: green !important;
}

.el-dialog-theme3 .el-dialog__header {
  margin-right: 0px !important;
  padding-top: 10px !important;
  //background: url(../../assets/images/navbar-bg-2.png) no-repeat center center !important;
   background-color: #1E90FF !important;
}

.el-dialog__title {
  color: #fff !important;
}

// tabs左右箭头
.el-tabs__nav-prev {
  top: -8px;
}
.el-tabs__nav-next {
  top: -8px;
}
// .el-tabs__item {
//   padding: 0 5px !important;
// }
// .el-tabs--bottom .el-tabs__item.is-bottom:nth-child(2), .el-tabs--bottom .el-tabs__item.is-top:nth-child(2), .el-tabs--top .el-tabs__item.is-bottom:nth-child(2), .el-tabs--top .el-tabs__item.is-top:nth-child(2) {
//   padding-left: 0 !important;
// }
// .el-tabs--bottom .el-tabs__item.is-bottom:last-child, .el-tabs--bottom .el-tabs__item.is-top:last-child, .el-tabs--top .el-tabs__item.is-bottom:last-child, .el-tabs--top .el-tabs__item.is-top:last-child {
//   padding-right: 0 !important;
// }

// .el-radio  单选框
.el-radio {
  margin-right: 5px !important;
}

// 树形控件背景色
.el-tree-node:focus > .el-tree-node__content {
  background-color: var(--theme-light-color) !important;
}

.el-tree-node__content:hover {
  background-color: var(--theme-light-color) !important;
}

.el-tree--highlight-current .el-tree-node.is-current > .el-tree-node__content {
  background-color: var(--theme-light-color) !important;
}

// 表格边框颜色
.el-table td.el-table__cell, .el-table th.el-table__cell.is-leaf {
  --el-table-border: 1px solid #d7d7d7  !important;
}

.el-table--border th.el-table__cell {
  --el-table-border: 1px solid #d7d7d7  !important;
}

.el-dialog {
  --el-dialog-padding-primary: 10px !important;
}

.el-dialog__body {
  padding: var(--el-dialog-padding-primary) !important
}

// 弹出框body内边距 
.dialog1 .el-dialog__body {
  padding: 10px !important;
}

// 天地图左下角logo去除
.tdt-bottom {
  display: none;
}

.el-menu--horizontal .el-menu-item:not(.is-disabled):focus, .el-menu--horizontal .el-menu-item:not(.is-disabled):hover {
  background-color: var(--theme-light-color) !important;
}